package com.lww.feature.test.dom;

import org.w3c.dom.Document;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import java.io.File;

/**
 * User: yian
 * Date: 2017/12/9
 */
public class LoadFile {
    public Document loadFileFromDir(String dir) throws ParserConfigurationException {
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

        DocumentBuilder builder = factory.newDocumentBuilder();


        File file=new File(dir);
        return null;

    }
}
